<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>护工列表</title>
</head>
<body>
<a href="{:U('add')}">添加护工</a>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <th>姓名</th>
        <th>头像</th>
        <th>年龄</th>
        <th>性别</th>
        <th>电话</th>
        <th>身份证号码</th>
        <th>微信</th>
        <th>技能</th>
        <th>具体服务内容</th>
        <th>服务地区</th>
        <th>服务类型</th>
    </tr>
    <foreach name="persons" item="row">
        <tr>
            <td>{$row.name}</td>
            <td><img src="{$row.headurl}" width="50px"></td>
            <td>{$row.age}</td>
            <td>{$row.sex}</td>
            <td>{$row.phone}</td>
            <td>{$row.id_card_no}</td>
            <td>{$row.wechat}</td>
            <td>{$row.skill}</td>
            <td>{$row.serverdetail}</td>
            <td>{:implode(',',$row['are_name'])}</td>
            <td>{:implode('，',$row['server_type_name'])}</td>
        </tr>
    </foreach>
</table>
</body>
</html>